package cn.labbook.bluetooth.util;



import cn.labbook.bluetooth.util.sequence.Sequence;

import java.util.UUID;

/**
 * <p>
 * id生成工具
 * </p>
 *
 * @author Administrator
 * @since 2018-10-30
 */
public class GenerateIdUtils {

    public static String get32Varchar() {
        return MathUtil.getMD5(UUID.randomUUID().toString());
    }

    public static String get17AutoId() {
        Sequence sequence = new Sequence(1, 0);
        return String.valueOf(sequence.nextId());
    }
}
